/* 
 * File:   mod_config.h
 * Author: stoppy
 *
 * Created on 2 aprile 2009, 17.58
 */

#include <glib-2.0/glib.h>

#ifndef _MOD_CONFIG_H
#define	_MOD_CONFIG_H

typedef struct
{
  char *sharedir, *spipaddress;
  int port, spportlisten,maxdiskspace;
} PeerConfig;

typedef struct
{
  char *sharedir;
  int portlistenpeer, portlistensp;
} SpConfig;

PeerConfig *loadPeerConfig(char *nomefile);

PeerConfig *loadSuperPeerConfig(char *nomefile);
#ifdef	__cplusplus
extern "C" {
#endif




#ifdef	__cplusplus
}
#endif

#endif	/* _MOD_CONFIG_H */

